home *** CD-ROM | disk | FTP | other *** search
- Path: news.luc.edu!user
- From: VArase@varase.it.luc.edu (Verne Arase)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: Q: '\n' character
- Date: Sun, 14 Apr 1996 21:03:22 -0500
- Organization: LUMC
- Message-ID: <AD97189A966891F2@mcdiala02.it.luc.edu>
- References: <4kj66f$k0o@ren.cei.net> <4kko80$8np@news.ld.centuryinter.net> <4kkvvsINN8fs@keats.ugrad.cs.ubc.ca> <4kmdsv$ojc@masala.cc.uh.edu> <4kmhpsINN7ak@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: 147.126.240.102
-
- In article <4kmhpsINN7ak@keats.ugrad.cs.ubc.ca>,
- c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
-
- >Humor me as to why it is necessary to retain a whole string of data just
- to
- >then scan through it to find its length to remove the trailining newline,
- >which was put there by a standard library function that already scanned
- the
- >characters once to _find_ the newline in the first place.
-
- This is a failing of the C standard I/O library; fgets() _ought_ to have
- returned the length read.
-
- ---
- The above are my own opinions, and not those of my employer.
-